package com.example.myapplication.ApiServices;

import com.example.myapplication.entity.LoginResponseBody;
import io.reactivex.rxjava3.core.Flowable;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;

/**
 * @author sjh
 * @Description
 * @create 2022/3/8 11:27
 */
public interface WanAndroidApiService2 {

    @POST("user/login")
    @FormUrlEncoded
    Call<LoginResponseBody> login(@Field("username") String username, @Field("password") String password);


    @POST("user/login")
    @FormUrlEncoded
    Flowable<LoginResponseBody> login2(@Field("username") String username, @Field("password") String password);

    @GET("lg/collect/list/{pageNum}/json")
    Flowable<ResponseBody> getArticle(@Path("pageNum") int pageNum);

}
